package day7;

public class BenC extends Car {
    private String brand;

    public BenC(String color, String number, String brand) {
        super(color, number);
        this.brand = brand;
    }

    public void information() {
        System.out.println(brand + ":颜色是" + getColor() + "，车牌号是" + getNumber());
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
}